<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:ui="http://java.sun.com/jsf/facelets">
    <h:head>
        <title>Facelet Title</title>
    </h:head>
    <h:body>
        <ui:composition>
            <h:form>
                <div class="phai">
                    <p> THỐNG KÊ</p>
                    <ul id="service_form" class="p_form">
                        <li>
                            <span>Xem theo trạng ngày :</span>
                            <h:inputText size="7" value="#{adminStatisticRequest.dayStart}"/>
                            <h:inputText size="7" value="#{adminStatisticRequest.monthStart}"/>
                            <h:inputText size="7" value="#{adminStatisticRequest.yearStart}"/>
                            <h:commandButton value="Search" action="#{adminStatisticRequest.viewStatistic('2')}"/>
                        </li>
                        <li>
                            <span>Xem theo trạng ngày :</span>
                            <h:inputText size="7" value="#{adminStatisticRequest.dayStart}"/>
                            <h:inputText size="7" value="#{adminStatisticRequest.monthStart}"/>
                            <h:inputText size="7" value="#{adminStatisticRequest.yearStart}"/><br></br><span></span>
                            <h:inputText size="7" value="#{adminStatisticRequest.dayEnd}"/>
                            <h:inputText size="7" value="#{adminStatisticRequest.monthEnd}"/>
                            <h:inputText size="7" value="#{adminStatisticRequest.yearEnd}"/>
                            <h:commandButton value="Search" action="#{adminStatisticRequest.viewStatistic('3')}"/>
                        </li>
                    </ul>
                    <div style="width: 100%; margin-top: 5px; border: 1px solid #CCCCCC;" class="nl">
                        <div style="width: 250px" class="dongtieude_table">
                            Type
                        </div>
                        <div style="width: 140px" class="dongtieude_table">
                            Total
                        </div>
                        <div style="width: 140px" class="dongtieude_table">
                            Detail
                        </div>
                        <ui:repeat value="#{adminStatisticRequest.listStatistic}" var="b">
                            <div class="nl" id="requestList">
                                <div id="reqitem_1358121" style="border-bottom: dotted 1px #cccccc;" class="nl">
                                    <div style="width: 250px" class="request_item">
                                        #{b.typeString}
                                    </div>
                                    <div style="width: 140px" class="request_item">
                                        #{b.total}
                                    </div>
                                    <div style="width: 140px" class="request_item">
                                        <h:commandLink value="Detail" action="#{adminStatisticRequest.viewStatisticByTypeComp()}" style="text-decoration: none" >
                                            <f:param name="cType" value="#{b.type}"></f:param>
                                        </h:commandLink>
                                    </div>
                                </div>
                            </div>
                        </ui:repeat>
                    </div>
                </div>
            </h:form>
        </ui:composition>
    </h:body>
</html>

